﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="BlackHole.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            <Services>
                <asp:ServiceReference Path="BlackholeService.asmx" />
            </Services>
         </asp:ScriptManager>

        <script type="text/javascript">
            $(document).ready(function () {
                $('[id$=myText]').bind('change', function () {
                    doCalc(); // or doCalc(this) or whatever you need
                });
                doCalc();
            });
        </script>

                >>选择要返修的产品：<br />
                按序列号：<asp:TextBox ID="txtSearchSerial" runat="server" AutoPostBack="True"></asp:TextBox>
                    <br />
                
                按网点：
                    <asp:DropDownList ID="comboDistricts" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="comboDistricts_SelectedIndexChanged">
                    </asp:DropDownList>
                
                    <asp:DropDownList ID="comboOwners" runat="server" AutoPostBack="True">
                    </asp:DropDownList>

                    <asp:DropDownList ID="comboDevices" runat="server" AutoPostBack="True">
                    </asp:DropDownList>
                <br />
                产品状态：
                <asp:RadioButtonList ID="radioStatus" runat="server" 
                    RepeatDirection="Horizontal">
                </asp:RadioButtonList>
                <asp:GridView ID="dataProducts" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" 
                            Visible="False" />
                        <asp:BoundField DataField="ProductDeviceName" HeaderText="设备类型" 
                            SortExpression="ProductDeviceName" />
                        <asp:BoundField DataField="ProductDistrictName" HeaderText="区县" 
                            SortExpression="ProductDistrictName" />
                        <asp:BoundField DataField="ProductOwnerName" HeaderText="网点" 
                            SortExpression="ProductOwnerName" />
                        <asp:BoundField DataField="StatusId" HeaderText="StatusId" 
                            SortExpression="StatusId" Visible="False" />
                        <asp:BoundField DataField="StatusName" HeaderText="状态" 
                            SortExpression="StatusName" />
                        <asp:BoundField DataField="SerialNO" HeaderText="序列号" 
                            SortExpression="SerialNO" />
                        <asp:BoundField DataField="PsamNO" HeaderText="PSAM卡号" 
                            SortExpression="PsamNO" />
                        <asp:BoundField DataField="RomVersion" HeaderText="固件版本" 
                            SortExpression="RomVersion" />
                    </Columns>
                </asp:GridView>


                
                <asp:ObjectDataSource ID="sourceGetProductBySerial" runat="server" 
                    SelectMethod="GetProductsDetailBySerialNO" TypeName="BlackHole.DAO.Utility">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txtSearchSerial" Name="serialNO" 
                            PropertyName="Text" Type="String" />
                        <asp:ControlParameter ControlID="radioStatus" DefaultValue="0" Name="statusId" 
                            PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>


                
            </ContentTemplate>

        </asp:UpdatePanel>
    
    </div>
    </form>
</body>
</html>
